package com.baizan.daka.ui.adapter


import android.graphics.Color
import android.view.View
import android.widget.TextView
import com.baizan.daka.mvp.model.bean.MyTeam
import com.baizan.daka.mvp.model.bean.ShowCashBean
import com.baizan.daka.mvp.model.bean.UserCaplitalDes
import com.baizan.daka.mvp.model.bean.UserTeam
import com.baizan.daka.ui.activity.MyTeamDesActivity
import com.baizan.daka.util.HyperTextUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.dianzan.daka.R

class MyTeamAdapter :
    BaseQuickAdapter<MyTeam, BaseViewHolder>(R.layout.item_my_team) {



    override fun convert(helper: BaseViewHolder, item: MyTeam) {//#FF9211
        val teamName = helper.getView<TextView>(R.id.team_name)
        teamName.text =  HyperTextUtil.build(item.teanLevelName)
            .appendColor("(成员${item.teamNumber}人)",Color.parseColor("#535353"))
            .Builder()
        helper.itemView.setOnClickListener {
            MyTeamDesActivity.start(mContext,item.teamLevel)
        }
    }


}